package com.example.demo.domain.base;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@Api(tags="RouterController")
@RestController
public class RouterController {
    @ApiOperation(value="需要映射的接口名称",notes = "刷新时访问此接口")
    @RequestMapping (path = {"/home", "/login", "/home/userIndex", "/home/roleIndex", "/home/permissionIndex"},method = RequestMethod.GET)
    public ModelAndView toHome() {
        final ModelAndView modelAndView = new ModelAndView("/base/TheMain.html");
        return modelAndView;
    }
}
